package com.yxhl.zoume.data.http.rest.repositoryimpl;

import com.yxhl.protobuf.BizOrderRequest;
import com.yxhl.protobuf.BizOrderResponse;
import com.yxhl.protobuf.MpvModelRequest;
import com.yxhl.protobuf.MpvModelResponse;
import com.yxhl.zoume.data.http.repository.car.ExpressCarRepository;
import com.yxhl.zoume.data.http.rest.param.expresscar.ExpressCarBillDetailParam;
import com.yxhl.zoume.data.http.rest.param.expresscar.ExpressCarCancelOrderParam;
import com.yxhl.zoume.data.http.rest.repositoryimpl.base.BaseDataRepository;
import com.yxhl.zoume.data.http.rest.response.expresscar.ExpressCarBillDetailResponse;
import com.yxhl.zoume.data.http.rest.response.specialcar.CancelOrderResponse;

import javax.inject.Inject;

import rx.Observable;

/**
 * Author：zhongshan   
 * Date：2016/12/14 15:24      
 * Description：
 */
public class ExpressCarDataRepository extends BaseDataRepository implements ExpressCarRepository {

    @Inject
    public ExpressCarDataRepository() {
    }

    @Override
    public Observable<MpvModelResponse> queryVehicleModel(MpvModelRequest request) {
        return mZouMeService.queryVehicleModel(request);
    }

    @Override
    public Observable<MpvModelResponse> queryExpressCarPriceAndDistance(MpvModelRequest request) {
        return mZouMeService.queryPriceAndDistance(request);
    }

    @Override
    public Observable<BizOrderResponse> createExpressCarOrder(BizOrderRequest request) {
        return mZouMeService.createNewCarOrder(request);
    }

    @Override
    public Observable<CancelOrderResponse> cancelExpressCarOrder(ExpressCarCancelOrderParam param) {
        return mZouMeService.cancelExpressCarOrder(param);
    }

    @Override
    public Observable<MpvModelResponse> queryPricingRules(MpvModelRequest request) {
        return mZouMeService.queryPricingRules(request);
    }
}
